<!--
	作者：2575202388@qq.com
	时间：2018-10-14
	描述：事件点顶部
-->

<template>
	
	<div>
		<Nav title="报名情况" :list="navlist"  @clicktitle="clicktitle"></Nav>

		<Body>
			<router-view></router-view>
		</Body>
		<headEdit ref="headEdit" :params="params" @setSystemInfo="getSystemInfo"></headEdit>
	</div>
</template>
<script>
	import headEdit from "./bmqkheadEdit";
	export default {
		name:"bmqkhead",
		data() {
			return {
				navlist:[
					{
						path:'/bmqk/whk',
						name:"文化课报名情况"
					},
					{
						path:'/bmqk/sthd',
						name:"社团活动报名情况"
					},
					{
						path:'/bmqk/other',
						name:"其它报名情况"
					}
				],
				params:{
					whkbmqk0:"文化课报名情况",
					sthdbmqk0:"社团活动报名情况",
				}
			}
		},
		methods: {
			getSystemInfo(){
				var csid=this.user.CSID;
				this.$http.get("/host/stgl/getsystemSet.html?csid="+csid)
				.then(datas => {
					
					this.navlist=[
						{
							path:'/bmqk/whk',
							name:datas.WHKBMQK
						},
						{
							path:'/bmqk/sthd',
							name:datas.STHDBMQK
						}
						,
						{
							path:'/bmqk/other',
							name:'其它报名情况'
						}
					];
					
					this.params={
						csid:this.user.CSID,
						whkbmqk0:datas.WHKBMQK,
						sthdbmqk0:datas.STHDBMQK,
						
					}
						
				});
			},
			
			clicktitle(){
				this.$refs.headEdit.modal0 = true;
			}
		},
		components: {
			headEdit
		},
		computed: {
			user: function() {
				return this.$store.state.app.user;
			}
		},
		mounted() {
			this.getSystemInfo();
		},
		watch:{
		}
	}
</script>

<style>
</style>



